package siruna.WE.core.model.VisualBlocks;

import java.util.List;

import org.apache.http.MethodNotSupportedException;

import siruna.WE.core.Constants;
import siruna.WE.core.Constants.InputTypes;
import siruna.WE.core.model.VisualBlock;

public class LabelImpl extends VisualBlock {

	@Override
	public InputTypes getType(String s) {
		if (s.equals("text")) {

			return Constants.InputTypes.string;

		}
		return null;
	}

	@Override
	public void setInput(String att, byte[] bytes) {
		// TODO Auto-generated method stub

	}

	@Override
	public byte[] toByteArray() {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public void setInput(String att, List list) {
		// TODO Auto-generated method stub

	}

	@Override
	public List toList() throws MethodNotSupportedException {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public String toHTML() {
		return "<LABEL id=\"" + getId() + "\">" + getAttributes().get("text")
				+ "</LABEL>";
	}

}
